const policyInfo = {
  state: {
    content: ``,
    fileList: [],
  },

  mutations: {
    SET_CONTENT: (state, content) => {
      state.content = content
    },
    SET_FILELIST: (state, fileList) => {
      state.fileList = fileList
    }
  },

  actions: {
    // 登录
    // Login ({
    //   commit
    // }, userInfo) {
    //   const username = userInfo.username.trim()
    //   return new Promise((resolve, reject) => {
    //     login(username).then(res => {
    //       setToken(res.token)
    //       commit('SET_TOKEN', res.token)
    //       resolve()
    //     }).catch(error => {
    //       reject(error)
    //     })
    //   })
    // }
  }
}

export default policyInfo
